#include "multimedia.h"

multimedia::multimedia(){
	name = "";
	year = -1;
}

multimedia::multimedia(string name, int year){
	this->name = name;
	this->year = year;
}

multimedia::~multimedia(void)
{
}

bool operator== (multimedia &m1, const multimedia &m2){
	if (m1.getName() == m2.getName() && m1.getYear() == m2.getYear()){
		return true;
	}
	else{
		return false;
	}
}

void multimedia::print(){
	cout << "multimediaprint" << endl;
}

/*ostream & operator<< (ostream &o, multimedia &m){
	o << "multimedia;" << m.name << "; " << m.year;
	return o;
}

istream & operator>> (istream &i, multimedia &m){
	getline(i, m.name, ';');
	i >> m.year;
	i.get();
	return i;
}*/